package com.feizhi.inventory.dialog;

import android.app.ProgressDialog;
import android.content.Context;

public class ProgressDialogUtil {

    private static ProgressDialog progressDialog;

    public static void showProgressDialog(Context context, String title, String message) {
        progressDialog = new ProgressDialog(context);
        progressDialog.setTitle(title);
        progressDialog.setMessage(message);
        progressDialog.setProgressStyle(ProgressDialog.STYLE_SPINNER);
        progressDialog.show();
    }

    public static void dismissProgressDialog() {
//        if (progressDialog != null && progressDialog.isShowing()) {
            progressDialog.dismiss();
//        }
    }

}
